package com.xq.jltx.frescosimple.display;

import android.content.res.Resources;
import android.graphics.drawable.Drawable;

import com.xq.jltx.frescosimple.R;

/**
 * @author jltxseo
 *         Created by junlintianxia on 2016年02月02日.
 */

public class DefaultDrawables {
    public static Drawable sPlaceholderDrawable;
    public static Drawable sErrorDrawable;

    public static void init(final Resources resources) {
        if (sPlaceholderDrawable == null) {
//            sPlaceholderDrawable = resources.getDrawable(R.color.placeholder);
            sPlaceholderDrawable = resources.getDrawable(R.drawable.default_user_header);
        }
        if (sErrorDrawable == null) {
//            sErrorDrawable = resources.getDrawable(R.color.error);
//            sErrorDrawable = resources.getDrawable(R.drawable.default_user_header);
        }
    }
}
